package main

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func main() {
	router := gin.Default()
	router.GET("/", func(c *gin.Context) {
		c.JSON(http.StatusOK, "home")
	})
	router.GET("/articles", func(c *gin.Context) {
		c.JSON(http.StatusOK, "articles")
	})
	router.GET("/article/:id", func(c *gin.Context) {
		id := c.Param("id")
		c.JSON(http.StatusOK, "article"+id)
	})
	router.Run(":8000")
}
